<div id="content">
<div id="box">
<h3>类目管理 [<a href="{url('Hotkey','Index')}">全部热词</a>]</h3>

{if !empty($this->data['menuCategory'])}
<table width="100%">
<tr>
<td>
<a href="{url('Category','Index')}">所有类目</a>
<!--{loop $this->data['menuCategory'] $info}-->
&nbsp;>&nbsp;<a href="{url('Category','Index',array('pid'=>$info['id']))}">{$info['name']}</a>
<!--{/loop}-->
</td>
</tr>
</table>
{/if}
<table class="admin-table">
<thead>
	<tr>
    	<th>ID</th>
    	<th>类目名称</th>
    	<th class="a-center">操作</th>
    </tr>
</thead>
<tbody>
	{if !empty($this->data['data'])}
	<!--{loop $this->data['data'] $info}-->
	<tr>
    	<td><a href="{url('Category','Index',array('pid'=>$info['id']))}">{$info['id']}</a></td>
    	<td><a href="{url('Category','Index',array('pid'=>$info['id']))}">{$info['name']}</a></td>
        <td class="a-center"><a href="{url('Category','Edit',array('id'=>$info['id']))}">修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{url('Category','Del',array('id'=>$info['id']))}" onclick="return confirm('删除类目将删除该类目下的所有子类目，确定要删除么？')">删除</a>&nbsp;&nbsp;|&nbsp;&nbsp;{if $info['pid']==0}{if $info['is_hide']==0}<a href="javascript:hideCategory({$info['id']},1)">屏蔽类目</a>{else}<a href="javascript:hideCategory({$info['id']},0)" class="showCategory">取消屏蔽</a>{/if}&nbsp;&nbsp;|&nbsp;&nbsp;{/if}<a href="{url('Category','Index',array('pid'=>$info['id']))}">子类目</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{url('Hotkey','Index',array('cid'=>$info['id']))}">热词管理</a></td>
    </tr>
    <!--{/loop}-->
    {/if}
</tbody>
</table>
</div>
</div>
<input type="hidden" id="hdHideUrl" value="{url('Category','Hide')}" />